﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WeatherHistory.Data.Entities;

public class Forecast : EntityBase
{
    [Required]
    [Column(TypeName = "varchar(32)")]
    public string WeatherCondition { get; set; }

    public long Id { get; set; }
    public long RegionId { get; set; }
    public DateTime Datetime { get; set; }
    public float Temperature { get; set; }

    public virtual Region Region { get; set; }
    public virtual ICollection<Weather> Weathers { get; set; }
    public virtual ICollection<WeatherForecastRelation> WeatherForecastRelations { get; set; }
}